<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/11/16
  Time: 14:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  已上传文件列表

<table cellpadding="0" cellspacing="0" border="1" width="100%" >
    <tr>
        <td>id}</td>
        <td>path}</td>
        <td>ip}</td>
        <td>size}</td>
        <td>originName}</td>
        <td>uploadTime}</td>
        <td>下载</td>
    </tr>

    <c:forEach items="${list}" var="uploadFile">
        <tr>
            <td>${uploadFile.id}</td>
            <td>${uploadFile.path}</td>
            <td>${uploadFile.ip}</td>
            <td>${uploadFile.size}</td>
            <td>${uploadFile.originName}</td>
            <td>${uploadFile.uploadTime}</td>
            <td>

                <a  href="http://localhost:8080/web06/download?fileName=${uploadFile.path}">下载</a>


            </td>
        </tr>

    </c:forEach>
</table>




</body>
</html>
